#!/usr/bin/sh
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo grep "submenu\|^\menuentry" /boot/grub2/grub.cfg | cut -d "'" -f2
sudo grub2-set-default "Fedora (4.2.6-301.fc23.x86_64) 23 (Workstation Edition)"
sudo grub2-editenv list
sudo reboot
